#ifndef INSCTRUCTION_H_INCLUDED
#define INSCTRUCTION_H_INCLUDED

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "arbre_evaluation.h"

#define INSCTRUCTION_ACTION 0
#define INSCTRUCTION_VAR 1
#define INSCTRUCTION_CONSTANTE 2
#define INSCTRUCTION_COND 3
#define INSCTRUCTION_FONCTION 4

#define ACTION_COND_SI 0
#define ACTION_COND_SI_SINON 1
#define ACTION_COND_SI_SINON_SI 2
#define ACTION_COND_TANTQUE 3

typedef struct instruction{
	int type_instruction;
	int type_action_cond;
	struct arbre * condition1;
	struct arbre * condition2;
	struct symbole * s;
	struct instruction * list1;
	struct instruction * list2;
	struct instruction * list3;
	struct instruction * precedente;
	struct instruction * suivante;
}instruction;

#endif